<? 
	$title="Transaction";
	$root_path = "";
	
	require("required/dbconnect.php");
	require("required/share_function.php"); 
	require("required/header.php");

?>		

<table id="Table_01" width="1100" height="100%" border="0" cellpadding="0" cellspacing="0" align="center" style="background-image:url(images/bg.jpg)">
  <td valign="top" align="left"  width="801" >
  		<table cellpadding="6" cellspacing="0" width="100%">		

            <tr>
                <td class='title'>
                    Transaction Complete                
                </td>					
            </tr>	
            <tr>                
            <td align="left" width="100%" height="400" valign="top">
    		<?
				foreach ($_POST as $var => $value) {
				//echo "$var = $value<br>";
				}	 
		
				$invoice = $_POST['invoice'];
				
				$txn_id=$_POST['txn_id'];
				$mc_gross=$_POST['mc_gross'];
				$payer_email=$_POST['payer_email'];
			
				if(isset($_POST['invoice']))
				{
					$get=mysql_query("select * from os_payment_record where invoice_no='".$_POST['invoice']."'")or die(mysql_error());
					
					
			?>	         
            <div class="dw_success">Your transaction has been completed! </div>
            <? }else{ ?>
            <div class="dw_failed">Invalid Access</div>
            <? } ?>
            </td>
            </tr>
        </table>
	</td>
  
</table>	
			
<? 
	require("required/footer.php"); 

?>	